package com.lsc.www.day06;

public class CarTest {
    public static void main(String[] args) {
        Bus bus = new Bus();
        bus.setBus("公共汽车");
        bus.setColor("黄色");
        bus.setNumber("沪A34214");
        ClosedCar closedCar = new ClosedCar();
        closedCar.setClosedCar("轿车");
        closedCar.setColor("红色");
        closedCar.setNumber("沪B12379");
        System.out.println("我的车型"+bus.getBus()+bus.introduce());
        System.out.println("我的车型"+closedCar.getClosedCar()+closedCar.introduce());
    }
}
